{if $alertHandler->alerts.$ALERT_TYPE_ERROR|@count > 0 }
<div id="alerts-error" class="alerts">
	<div>
		<ul>
		{foreach item=alert from=$alertHandler->alerts.$ALERT_TYPE_ERROR }
			<li><img src="{$WEB_ROOT}images/exclamation.png" align="absmiddle" /> {$alert->message}</li>
		{/foreach}
		</ul>
	</div>
</div>
{/if}

{if $alertHandler->alerts.$ALERT_TYPE_SUCCESS|@count > 0 }
<div id="alerts-success" class="alerts">
	<div>
		<ul>
		{foreach item=alert from=$alertHandler->alerts.$ALERT_TYPE_SUCCESS }
			<li><img src="{$WEB_ROOT}images/tick.png" align="absmiddle" /> {$alert->message}</li>
		{/foreach}
		</ul>
	</div>
</div>
{/if}